package com.dcy.adapter.objectadapter;

/**
 * @Author：dcy
 * @Description:
 * @Date: 2021/1/21 9:25
 */
public class Client {

    public static void main(String[] args) {
        System.out.println("=========类适配器模式=============");
        Phone phone = new Phone();
        phone.charging(new VoltageAdapter(new Voltage220V()));
    }

}
